<template>
    <div>
        HomeContent
    </div>
</template>
<script>
import emitter from './utils/eventbus'
export default {
    data() {
       return {}
    },
    created() {
        emitter.on("changeOn", info => {
            console.log(info)
        });
        emitter.on("changeOn2", info => {
            console.log(info)
        })

        //同时接收多个事件
        emitter.on("*", (type, e) => {
            console.log(type, e)
        })

        //取消所有监听
        emitter.all.clear()
    },
}
</script>
<style>
</style>
